Cross Product/DNS - Find Dangling DNS Records/AzDanglingDomain/AzDanglingDomain.psm1 (4 lines of code) (raw):

$script:moduleRoot = Split-Path -Path $MyInvocation.MyCommand.Path # Dot source functions "$script:moduleRoot\Export\*.ps1" | Resolve-Path | Where-Object { $_.ProviderPath -notlike "*Workflow*"} | ForEach-Object{. $_.ProviderPath} "$script:moduleRoot\Export\*.ps1" | Resolve-Path | Where-Object { $_.BaseName -notlike "*Workflow*"} | ForEach-Object{ Export-ModuleMember -Function $_.BaseName -Verbose}